package com.jkl.service.param;

import com.jkl.dao.param.ParamKeyMapper;
import com.jkl.entity.param.ParamKey;
import com.jkl.service.param.inter.IParamKeyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuzhennan
 * @create 2021-01-25 9:49
 */
@Service
@Slf4j
public class ParamKeyService implements IParamKeyService {
    @Autowired
    private ParamKeyMapper paramKeyMapper;


    @Override
    public ParamKey selectBySystemType() {
        return paramKeyMapper.selectBySystemType();
    }

    @Override
    public ParamKey selectBySystemName() {
        return paramKeyMapper.selectBySystemName();
    }

    @Override
    public ParamKey selectBySystemImg(String keyName) {
        return paramKeyMapper.selectBySystemImg(keyName);
    }

    @Override
    public ParamKey selectByDeptRoot() {
        return paramKeyMapper.selectByDeptRoot();
    }

    @Override
    public ParamKey selectByStoreType() {
        return paramKeyMapper.selectByStoreType();
    }

    @Override
    public ParamKey selectMap() {
        return paramKeyMapper.selectMap();
    }

    // 通过key_code查找不同系统的需要用到的值
    @Override
    public List<ParamKey> getParamKeyByKeyCode(String keyCode) {
        return paramKeyMapper.getParamKeyByKeyCode(keyCode);
    }
}
